<template>
  <div class="card-box-fom">
    <div class="label">{{ title }}</div>
    <div class="box-table">
      <div class="left">
        <div class="tr">
          <p>{{ leftTitle }}</p>
          <p>{{ leftValue }}</p>
        </div>
        <div class="btr">
          <p>{{ botTitle }}</p>
          <p>{{ botValue }}</p>
        </div>
      </div>
      <div class="right">
        <slot></slot>
      </div>
    </div>
  </div>
</template>

<script>
  export default {
    props:['title','leftTitle','leftValue','botTitle','botValue']
  }
</script>
<style scoped lang="scss">
.card-box-fom{
  width: 100%;
  height: 340px;
  background: #fff;
  border: 1px solid #eeefef;
  border-radius: 3px;
  margin-top: 10px;
  padding: 20px;
  box-sizing: border-box;
  .label{
    width: 100%;
    font-weight: 600;
    color: #34bfa3;
    position: relative;
    padding-left: 15px;
    &:before{
      position: absolute;
      content: "";
      left: 0;
      top: 50%;
      transform: translateY(-50%);
      width: 3px;
      height: 1em;
      background-color: #34bfa3;
      border-radius: 2px;
    }
  }
  .box-table{
    width: 100%;
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    .left{
      width: 120px;
      height: 200px;
      .tr{
        width: 100%;
        height: 100px;
        border-right: 1px solid #e5e5e5;
        border-bottom: 1px solid #e5e5e5;
        font-size: 14px;
        padding: 10px;
        box-sizing: border-box;
      }
      .btr{
        width: 100%;
        height: 100px;
        border-right: 1px solid #e5e5e5;
        font-size: 14px;
        padding: 10px;
        box-sizing: border-box;
      }
    }
    .right{
      width: calc(100% - 130px);
      min-height: 200px;
      box-sizing: border-box;
    }
  }
}
</style>
